package lesson01.oop;

public class Animal {

	public static void main(String[] args) {
		Animal a = new Dog();
//		a.call();
	}
	String name = "动物";
	public void eat() {
		System.out.println(" Animal@eat() ");
	}
	
}
class Dog extends Animal {
	
	public void call() {
		System.out.println(" Dog@call ");
	}

	@Override
	public void eat() {
		System.out.println(" Dog@eat() ");
//		super.eat();
	}
	
}
